﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminCmsArticleIndependentUpdate.ascx.cs"
    Inherits="BIS.Portal.Modules.CMS.Adm.AdminCmsArticleIndependentUpdate" %>

<script src='<%# ModulePath +"tinymce/jscripts/tiny_mce/tiny_mce.js" %>' type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    tinyMCE.init({
        // General options
        mode: "exact",
        elements: '<% =txtArticleContent.ClientID %>',
        theme: "advanced",
        plugins: "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu, paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount",

        // Theme options
        theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|, justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,| ,outdent,indent,blockquote,|,undo,redo,|,link,unlink, anchor,image,cleanup,help,code,|,insertdate,inserttime, preview,|,forecolor,backcolor",
        theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions, iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|, styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking, template,pagebreak",
        theme_advanced_toolbar_location: "top",
        theme_advanced_toolbar_align: "left",
        theme_advanced_statusbar_location: "bottom",
        theme_advanced_resizing: true,

        // Example content CSS (should be your site CSS)
        content_css: "css/content.css",

        // Drop lists for link/image/media/template dialogs
        template_external_list_url: "lists/template_list.js",
        external_link_list_url: "lists/link_list.js",
        external_image_list_url: "lists/image_list.js",
        media_external_list_url: "lists/media_list.js",

        // Replace values for the template plugin
        template_replace_values: {
            username: "Some User",
            staffid: "991234"
        }
    });
</script>
<style type="text/css">
    .waper
    {
        width: 980px;
        margin: 0 auto;
    }
    .childen
    {
        width: 970px;
        margin: 5px;
        float: left;
        clear: both;
    }
    .childenLeft
    {
        width: 150px;
        float: left;
    }
    .childenRight
    {
        width: 720px;
        float: left;
    }
    .style1
    {
        color: #FF0000;
        background-color: #FFFFFF;
    }
    .style2
    {
        color: #FF0000;
    }
</style>
<div class="waper">
    <div class="childen">
        <div class="childenLeft">
            Tiêu đề (<span class="style1">*</span>)</div>
        <div class="childenRight">
            <asp:TextBox runat="server" ID="txtArticleTitle" Width="412px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtArticleTitle" ErrorMessage="Không được bỏ trống"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="childen">
        <div class="childenLeft">
            Nội dung (<span class="style2">*</span>)</div>
        <div class="childenRight">
            <asp:TextBox ID="txtArticleContent" runat="server" TextMode="MultiLine" 
                Height="315px" Width="600px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtArticleContent" ErrorMessage="Không được bỏ trống"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="childen">
        <div class="childenLeft">
            Ngôn ngữ (<span class="style2">*</span>)</div>
        <div class="childenRight">
            <asp:DropDownList ID="ddlLanguage" runat="server" Height="20px" Width="216px">
                <asp:ListItem Value="1">Tiếng Việt</asp:ListItem>
                <asp:ListItem Value="2">Tiếng Anh</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="childen">
        <div class="childenLeft">
            Trạng Thái (<span class="style2">*</span>)</div>
        <div class="childenRight">
            <asp:DropDownList ID="ddlStatus" runat="server" Height="20px" Width="214px">
                <asp:ListItem Value="0">Tạm Ẩn</asp:ListItem>
                <asp:ListItem Value="1">Hiển Thị</asp:ListItem>
                <asp:ListItem Value="99">Xóa logic</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div style="text-align:center;">
        <asp:Button runat="server" ID="btnAddNew" Text="Thêm Mới" Visible="false" 
            Width="90px" Height="25px" onclick="btnAddNew_Click" />
        <asp:Button runat="server" ID="btnUpdate" Text="Cập Nhật" Width="90px" 
            Height="25px" onclick="btnUpdate_Click" />
        <asp:Button runat="server" ID="btnCancel" Text="Bỏ Qua" Width="90px" 
            Height="25px" onclick="btnCancel_Click" CausesValidation="False" />
        <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
    </div>
    <asp:HiddenField ID="hiddenIsPostBack" Value="false" runat="server" />
</div>
